<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var a = 10;
    if(a>0){
        a++;
        console.log('执行了++');
    }

    if (a>5){
        a = a+2;
        console.log('执行了+2');
    }

    console.log(a);
</script>
<body>

</body>
</html>